<template>
  <div id="qianqichjgcs" class="app-container" v-loading="loading">
    <div class="tabs dachuShenChaBox">
      <el-tabs v-model="activeName" @tab-click="handleClick">
        <el-tab-pane label="图件审查" name="1"></el-tab-pane>
        <el-tab-pane label="附件审查" name="2"></el-tab-pane>
      </el-tabs>
      <div class="dachuShenCha">
        <div class="dachuShenCha_item" @click="exportOpinion">
          <i class="el-icon-upload2"></i> 导出审查意见
        </div>
        <div class="dachuShenCha_item" @click="checkTijiao" v-if="!isLook">
          <i class="el-icon-document-checked"></i> 校验审查意见
        </div>
      </div>
    </div>
    <div class="tdMap-box" v-show="activeName=='1'">
      <tdMap ref="tdMap" :pkList="list" :isShowXztBtn="false" :xianZhuangPath="xianZhuangFliePath" :cuowuList="cuowuListData" :yijianInfo="yijianInfoData" :isLook='isLook'>
        <template slot="buttonGroup">
          <!-- <el-button @click="handleXzViewInto" size="medium">现状图</el-button> -->
          <el-dropdown class="CAD"  @command="handleXzViewInto">
            <el-button class="line" size="medium">
              CAD查看
              <i class="el-icon-arrow-down el-icon--right"></i>
            </el-button>
            <el-dropdown-menu slot="dropdown">
              <el-dropdown-item command="66">远近图查看</el-dropdown-item>
              <el-dropdown-item command="1">现状图</el-dropdown-item>
              <el-dropdown-item command="3">工程布局图</el-dropdown-item>
              <el-dropdown-item command="4">规划图</el-dropdown-item>
            </el-dropdown-menu>
          </el-dropdown>
          <!-- <el-button @click="handleXzViewInto(1)" size="medium">工程布局图</el-button> -->
          <!-- <el-button @click="handleXzViewInto(2)" size="medium">规划图</el-button> -->
        </template>
        <div v-if="curIndex != null" slot="popupBaseInfo">
          <table cellspacing="0" class="tableBasicInfo">
            <tr>
              <th>权利人</th>
              <td>{{list[curIndex].qlr}}</td>
            </tr>
            <tr>
              <th>身份证号</th>
              <td>{{list[curIndex].idCard}}</td>
            </tr>
            <tr>
              <th>所在乡镇</th>
              <td>{{list[curIndex].townName}}</td>
            </tr>
            <tr>
              <th>村/居委会</th>
              <td>{{list[curIndex].villageName}}</td>
            </tr>
            <tr>
              <th>农村宅基地面积(㎡)</th>
              <td>{{list[curIndex].nczjd}}</td>
            </tr>
            <tr>
              <th>农村宅基地附属用地面积(㎡)</th>
              <td>{{list[curIndex].zjdfs}}</td>
            </tr>
            
            <tr>
              <th>预计减少建设用地面积</th>
              <td>{{list[curIndex].yjjsj}}</td>
            </tr>
            <tr>
              <th>预计增加农用地面积</th>
              <td>{{list[curIndex].yjzjn}}</td>
            </tr>
            <tr>
              <th>预计增加耕地面积</th>
              <td>{{list[curIndex].yjzjg}}</td>
            </tr>
            <tr>
              <th>预计增加林地面积</th>
              <td>{{list[curIndex].yjzjl}}</td>
            </tr>
            <tr>
              <th>预计增加园地面积</th>
              <td>{{list[curIndex].yjzjy}}</td>
            </tr>
            <tr>
              <th>预计增加其他农用地面积</th>
              <td>{{list[curIndex].yjzjq}}</td>
            </tr>
            <tr>
              <th>审定实施红线面积</th>
              <td>{{list[curIndex].sdsshxmj}}</td>
            </tr>
            <tr>
              <th>审定附属用地</th>
              <td>{{list[curIndex].sdfsyd}}</td>
            </tr>
            <tr>
              <th>审定宅基地</th>
              <td>{{list[curIndex].sdzjd}}</td>
            </tr>
            <tr>
              <th>审定其他</th>
              <td>{{list[curIndex].tbdlm}}</td>
            </tr>
            
          </table>
         
          <!-- <div class="allShenchaTuBtn">
            <el-button type="text" size="small" @click="toSeeYjImg(list[curIndex])">查看远近景照</el-button>
            <el-button type="text" @click="toSeeXianZhuang(list[curIndex],1)" size="small">
              {{list[curIndex].auditDto.statusMapProblemStatus=='AUDIT'?'审查现状图':list[curIndex].auditDto.statusMapProblemStatus=='VIEW'?'查看现状图':'审查现状图'}}
            </el-button>
            <el-button type="text" size="small" @click="toSeeXianZhuang(list[curIndex],2)">
              {{list[curIndex].auditDto.statusMapOpinionStatus=='AUDIT'?'审查单体图':list[curIndex].auditDto.statusMapOpinionStatus=='VIEW'?'查看单体图':'审查单体图'}}
            </el-button>
            <el-button type="text" size="small" @click="toSeeXianZhuang(list[curIndex],3)">
              {{list[curIndex].auditDto.engineeringMapOpinionStatus=='AUDIT'?'审查工程布局图':list[curIndex].auditDto.engineeringMapOpinionStatus=='VIEW'?'查看工程布局图':'审查工程布局图'}}
            </el-button>
            <el-button type="text" size="small" @click="toSeeXianZhuang(list[curIndex],4)">
              {{list[curIndex].auditDto.planningMapOpinionStatus=='AUDIT'?'审查规划图':list[curIndex].auditDto.planningMapOpinionStatus=='VIEW'?'查看规划图':'审查规划图'}}
            </el-button>
             
          </div> -->
        </div>
        <div slot="popupJgInfo">监管信息</div>
      </tdMap>
      
    </div>

    <div class="fujianShenCha" v-if="activeName=='2'">
      <div class="fujianList">
        <div class="fujianList_item" v-for="(item,index) in fujianList" :key="index">
          <p>{{item.fileName}}</p>
          <el-button @click="chaKanItem(item)">
            {{item.opinionStatus=='AUDIT'?'审查':item.opinionStatus=='VIEW'?'已审查':'审查'}}
          </el-button>
        </div>
      </div>
      <div class="chaKanBox" v-if="showChaKan">
        <!-- <div class="closeBox" style="margin-bottom:20px;">
          <el-button @click="showChaKan=false">关闭</el-button>
        </div>-->
        <div class="showDetail">
          <div class="chaKanBox_left">
            <div style="width:600px;height:500px;">
              <iframe
                :src="$https+itemData.filePath"
                frameborder="0"
                style="width:100%;height:100%;"
              ></iframe>
            </div>
            
          </div>
          <div class="chaKanBox_right">
            <div class="chaKanBox_right_item chaKanBox_right_select">
              <p>意见类型：</p>
              <el-select v-model="yijianValue" @change="changeText" placeholder="--请选择--">
                <el-option
                  v-for="item in cuowuList"
                  :key="item.code"
                  :label="item.name"
                  :value="item.code"
                ></el-option>
              </el-select>
            </div>
            <div class="chaKanBox_right_item textarea" v-if="isText">
              <el-input
                class="chaKanBox_right_item_textarea"
                type="textarea"
                :rows="10"
                placeholder="请输入内容"
                v-model="yijianContent"
              ></el-input>
            </div>
            <div class="chaKanBox_right_item button" v-if="!isLook">
              <el-button
                type="primary"
                v-loading.fullscreen.lock="fullscreenLoading"
                @click="submitYj"
                element-loading-text="拼命加载中"
                element-loading-spinner="el-icon-loading"
                element-loading-background="rgba(0, 0, 0, 0.8)"
              >提交</el-button>
            </div>
          </div>
        </div>
      </div>
    </div>

    <el-dialog
      title="审查意见"
      :visible.sync="shenchaFlag"
      :before-close="handleClose"
      class="shenChaTanKuang"
    >
      <div class="shenChaContent">
       
       <div class="shenchaItem">
          <p>问题类型：</p>
          <div class="shenchaItem_item">
            <el-select v-model="shenchaInfo.isExistQuestions" placeholder="--请选择--">
                <el-option
                  v-for="item in cuowuList"
                  :key="item.code"
                  :label="item.name"
                  :value="item.code"
                ></el-option>
              </el-select>
          </div>
        </div>
        <div class="shenchaItem_item_noFlex" >
          <p>疑问复垦点问题记录：</p>
          <div class="shenchaItem_item">
            <el-input
              class="shenchaItem_item_textarea"
              type="textarea"
              :rows="5"
              placeholder="请输入内容"
              v-model="shenchaInfo.questionsRecord"
            ></el-input>
          </div>
        </div>
      </div>
      <span slot="footer" class="dialog-footer" v-if="!isLook">
        <el-button @click="handleClose">取 消</el-button>
        <el-button
          v-loading.fullscreen.lock="fullscreenLoading"
          element-loading-text="拼命加载中"
          element-loading-spinner="el-icon-loading"
          element-loading-background="rgba(0, 0, 0, 0.8)"
          type="primary"
          @click="submitYj1"
        >确 定</el-button>
      </span>
    </el-dialog>

    <el-dialog title="查看图片" :visible.sync="seeImgDialog" width="50%">
      <div class="seeImg">
        <ul>
          <li v-for="(item,index) in imgArr" :key="index">
            <p>{{item.fileName}}</p>
            <img :src="$https+item.filePath" />
          </li>
          <li style="width:100%">
            <p>{{quanImg.fileName}}</p>
            <div ref="panorama" class="imgBox" style="text-align:center;width:100%;height:500px"></div>
          </li>
        </ul>
      </div>
    </el-dialog>
    <el-dialog
      title="外业审查意见"
      :visible.sync="shenchaFlag1"
      :before-close="handleClose1"
      class="shenChaTanKuang"
    >
      <div class="shenChaContent">
        <div class="shenchaItem">
          <p>是否通过：</p>
          <div class="shenchaItem_item">
            <el-radio-group v-model="waiyeObj.waiyeRadio">
              <el-radio label="YES">是</el-radio>
              <el-radio label="NO">否</el-radio>
            </el-radio-group>
          </div>
        </div>
      </div>
      <span slot="footer" class="dialog-footer" v-if="!isLook">
        <el-button @click="shenchaFlag1 = false">取 消</el-button>
        <el-button
          v-loading.fullscreen.lock="fullscreenLoading"
          element-loading-text="拼命加载中"
          element-loading-spinner="el-icon-loading"
          element-loading-background="rgba(0, 0, 0, 0.8)"
          type="primary"
          @click="submitWy"
        >确 定</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
import {
  auditLandResultInfo,
} from "@/api/siteSurveyEarlyStage";

import { setTimeout } from "timers";
import tdMap from "@/components/tdMap";
import {
  exportReviewOpinions,
  queryAttachmentInfo,
  queryFilingAuditInfo,
  queryFilingDataFujian,
  checkAuditProjectResultAttachmentInfo,
  queryEarlyEnterpriseCheckImg,
  checkAuditLandStatusMapInfo,
  queryEarlyEnterpriseCheckXzt,
  queryEarlyEnterpriseCheckGcbjt,
  queryEarlyEnterpriseCheckGht,
} from "@/api/storeForRecordSee";
import {
  getNormalOpinionType,
  getQuestionsOpinionType
} from "@/api/getOpinion";
import PhotoSphereViewer from "photo-sphere-viewer";
import "photo-sphere-viewer/dist/photo-sphere-viewer.css";
export default {
  components: {
    tdMap
  },
  filters: {},
  data() {
    return {
      cuowuListData:[],
      xianZhuangFliePath:'',
      waiyeObj:{
        waiyeRadio:'',
        landId:''
      },
      shenchaFlag1:false,
      showWenTiBox: true,
      fullscreenLoading: false, //全屏加载
      cuowuList: [], //错误类型数组
      qswuowuList: [], //疑问片块错误类型
      radio: "YES", //该片块图件是否为遗漏复垦点
      radio1: "YES", //审定规模与送审规模是否一致
      textarea: "",
      value: "",
      showChaKan: false, //显示隐藏查看框
      data: [
        {
          id: 1,
          label: "土地利用规划",
          children: [
            {
              id: 8,
              label: "总体规划"
            },
            {
              id: 9,
              label: "管理区规划"
            },
            {
              id: 10,
              label: "土地整治规划"
            }
          ]
        },
        {
          id: 2,
          label: "土地利用现状",
          children: [
            {
              id: 5,
              label: "2018年"
            },
            {
              id: 6,
              label: "2017年"
            }
          ]
        }
      ],
      activeName: "1",
      list: null,
      listLoading: false,
      listQuery: {
        page: 1,
        size: 10
      },
      total: 0, //总数
      defaultProps: {
        children: "children",
        label: "label"
      },
      shenchaFlag: false, //审查弹框控制
      showThreeFlag: false, //是否显示三个输入框
      fujianList: [], //附件数组
      itemData: "", //单个附件的数据
      yijianValue: "", //意见值
      yijianContent: "", //意见内容
      itemDataForTable: {
        landId: "", //片块ID
        problemReclaimProblemRecord: "", //疑问复垦点问题记录
        problemReclaimPointOpinionType: "" //疑问复垦点问题类型：
      },
      mapConfig: {
        map: null,
        lng: 106.55,
        lat: 29.57,
        zoom: 10,
        lay: null
      },
      T: null,
      isText: true,
      loading: false,

      imgArr: [], //远近景照片
      seeImgDialog: false,
      quanImg: {
        filePath: "",
        fileName: "全景照"
      },
      panoramaImg: require("@/assets/pure-house.jpg"),

      noWenti: true, //显示隐藏问题框

      isLook: false,

      shenchaInfo:{
        landId:'',//片块id
        isExistQuestions:'',//该片块图件是否存在问题
        questionsRecord:'',//问题记录
      },

      curIndex: null,
      nowType:1,
      //意见
      yijianInfoData:{
        yijianValue:'',
        yijianContent:'',
        status:''
      }
    };
  },
  created() {
    if (localStorage.getItem("router") == "STORING_RECORD_SECOND_AUDIT") {
      //this.landId = this.$route.query.id;
      this.isLook = false;
    } else {
      this.isLook = true;
    }
    this.getData();
    this.getFujian();
    this.getOpinionType();
  },
  methods: {
    //关闭现状图
    guanbiXianZhuang(){
      this.xianZhuangFliePath=''
    },
    //打开现状图
    handleXzViewInto(num){
      this.nowType=Number(num)
      this.$refs.tdMap.handleXzView()
    },
    //问题记录
    wentijilu(row){
      var that=this
      var data={
        "projectId": localStorage.getItem("projectId"),
        "landId": row.landId,
        //"statusMapProblemType": this.yijianValue,
        //"statusMapProblemRecord": this.yijianContent
      }
      if(this.nowType==1){
        data['statusMapProblemType']=row.yijianValue
        data['statusMapProblemRecord']=row.yijianContent
      }else if(this.nowType==3){
        data['engineeringMapOpinionType']=row.yijianValue
        data['engineeringMapOpinion']=row.yijianContent
      }else if(this.nowType==4){
        data['planningMapOpinionType']=row.yijianValue
        data['planningMapOpinion']=row.yijianContent
      }
      checkAuditLandStatusMapInfo(data).then(res=>{
        this.$refs.tdMap.closeXianZhuang()
        if(res.code==1000){
          this.$message({
            message: "提交成功",
            type: "success"
          });
        }
      }).catch(error=>{
        this.$refs.tdMap.closeXianZhuang()
      });
    },
    getCurListIndex(index) {
      //片块基本信息
      this.curIndex = index;
    },
    //打开外业审查意见弹框
    shenchaWy(row){
      this.waiyeObj.landId=row.landId
      if(row.auditDto.isStoringRecordInspectionStatus=='VIEW'){
        this.waiyeObj.waiyeRadio=row.auditDto.isStoringRecordInspection
      }else if(row.auditDto.isStoringRecordInspectionStatus=='AUDIT'){
        this.waiyeObj.waiyeRadio=''
      }
      this.shenchaFlag1=true
    },
    //提交外业意见
    submitWy(){
      console.log('审查')
      let obj={
        landId:this.waiyeObj.landId,
        projectId:localStorage.getItem("projectId"),
        isStoringRecordInspection:this.waiyeObj.waiyeRadio
      }
      this.fullscreenLoading=true
      checkAuditLandStatusMapInfo(obj).then(res=>{
        this.fullscreenLoading = false;
          if (res.code == 1000) {
            this.$message({
              message: "审查成功",
              type: "success"
            });
            this.shenchaFlag1=false
            this.getData();
          }
      }).catch(error=>{
        this.fullscreenLoading = false;
      })
    },
    handleClose1() {
      this.shenchaFlag1 = false;
    },
    exportOpinion() {
      //导出意见
      var a = document.createElement("a");
      a.setAttribute(
        "href",
        this.$https +
          "/pc/project/storing_record_first_audit/opinion_review?projectId=" +
          localStorage.getItem("projectId")
      );
      a.click();
    },
    //切换疑问类型
    changeType(val) {
      if (val == "NO_PROBLEM") {
        this.noWenti = false;
      } else {
        this.noWenti = true;
      }
    },
    //获取现状图
    getXianZhangData(data) {
      var data = {
        landId: data.landId
      };
      if(this.nowType==1){
        queryEarlyEnterpriseCheckXzt(data).then(res=>{
          this.xianZhuangFliePath= res.data.statusMap.filePath
          this.yijianInfoData.yijianContent=res.data.auditDto.statusMapProblemRecord
          this.yijianInfoData.yijianValue=res.data.auditDto.statusMapProblemType
          this.yijianInfoData.status=res.data.auditDto.statusMapProblemStatus
        })
      }else if(this.nowType==3){
        queryEarlyEnterpriseCheckGcbjt(data).then(res=>{
          this.xianZhuangFliePath= res.data.filePath
          this.yijianInfoData.yijianContent=res.data.opinion
          this.yijianInfoData.yijianValue=res.data.opinionType
          this.yijianInfoData.status=res.data.opinionStatus
        })
      }else if(this.nowType==4){
        queryEarlyEnterpriseCheckGht(data).then(res=>{
          this.xianZhuangFliePath= res.data.filePath
          this.yijianInfoData.yijianContent=res.data.opinion
          this.yijianInfoData.yijianValue=res.data.opinionType
          this.yijianInfoData.status=res.data.opinionStatus
        })
      }
    },
    //前往查看现状图
    toSeeXianZhuang(row) {
      if(this.nowType==66){
        this.toSeeYjImg(row)
      }else{
        this.getXianZhangData(row)
      }
    },

    toSeeYjImg(row) {
      //查看远近景照
      console.log(row, "12331212");
      this.imgArr=[]
      let obj = {
        landId: row.landId
      };
      queryEarlyEnterpriseCheckImg(obj).then(res => {
        console.log(res, "1111111111");
        if (res.code == 1000) {
          if (res.data != null) {
            if (
              res.data.landPositionOneFilePath != null &&
              res.data.landPositionOneFilePath != ""
            ) {
              this.imgArr.push({
                fileName: "方位照1",
                filePath: res.data.landPositionOneFilePath,
                id: 1
              });
            }
            if (
              res.data.landPositionTwoFilePath != null &&
              res.data.landPositionTwoFilePath != ""
            ) {
              this.imgArr.push({
                fileName: "方位照2",
                filePath: res.data.landPositionTwoFilePath,
                id: 2
              });
            }
            if (
              res.data.landPositionThreeFilePath != null &&
              res.data.landPositionThreeFilePath != ""
            ) {
              this.imgArr.push({
                fileName: "方位照3",
                filePath: res.data.landPositionThreeFilePath,
                id: 3
              });
            }
            if (
              res.data.landPositionFourFilePath != null &&
              res.data.landPositionFourFilePath != ""
            ) {
              this.imgArr.push({
                fileName: "方位照4",
                filePath: res.data.landPositionFourFilePath,
                id: 4
              });
            }
            if (
              res.data.panoramagramFilePath != null &&
              res.data.panoramagramFilePath != ""
            ) {
              this.quanImg.filePath = res.data.panoramagramFilePath;
              this.panoramaImg=res.data.panoramagramFilePath
              // this.imgArr.push({
              //   fileName:'全景照',
              //   filePath:res.data.panoramagramFilePath,
              //   id:5
              // })
            }
            if (!this.$refs.panorama) {
              this.$nextTick(() => {
                PhotoSphereViewer({
                  panorama: this.panoramaImg,
                  container: this.$refs.panorama,
                  time_anim: 3000,
                  navbar: true,
                  navbar_style: {
                    backgroundColor: "rgba(58, 67, 77, 0.7)"
                  }
                });
              });
            }
          }
        }
        console.log(this.imgArr, "imgarr");
        this.seeImgDialog = true;
      });
    },
    changeText(v) {
      if (v == "NO_PROBLEM") {
        this.isText = false;
      } else {
        this.isText = true;
      }
    },
    //选择问题类型(用于无问题时隐藏输入意见框)
    changeWenTi(v) {
      console.log(v);
      if (v == "NO_PROBLEM") {
        this.showWenTiBox = false;
      } else {
        this.showWenTiBox = true;
      }
    },
    //检查提交
    checkTijiao() {
      var data123 = {
        projectId: localStorage.getItem("projectId")
      };
      this.loading = true;
      exportReviewOpinions(data123)
        .then(res => {
          if (res.code == 1000) {
            this.$alert("全部审查成功,请前往意见中心进行审查", "提示", {
              confirmButtonText: "确定",
              callback: action => {}
            });
            this.loading = false;
          }
        })
        .catch(error => {
          this.loading = false;
        });
    },
    //提交意见(列表)
    submitYj1() {
      this.fullscreenLoading = true;
      var that = this;
     
      var data = {
        projectId: localStorage.getItem("projectId"),
        landId: this.shenchaInfo.landId,
        landOpinionType: this.shenchaInfo.isExistQuestions,
        landOpinion: this.shenchaInfo.questionsRecord
      };
      checkAuditLandStatusMapInfo(data)
        .then(res => {
          this.fullscreenLoading = false;
          if (res.code == 1000) {
            this.$message({
              message: "审查成功",
              type: "success"
            });
            that.getData();
            that.shenchaFlag = false;
          }
        })
        .catch(error => {
          this.fullscreenLoading = false;
        });
    },
    //提交意见(附件)
    submitYj() {
      var that = this;
      this.fullscreenLoading = true;
      var data = {
        projectId: localStorage.getItem("projectId"),
        attachmentType: this.itemData.fileType,
        opinionType: this.yijianValue,
        opinionContent: this.yijianContent
      };
      checkAuditProjectResultAttachmentInfo(data)
        .then(res => {
          this.fullscreenLoading = false;
          if (res.code == 1000) {
            this.$message({
              message: "提交成功",
              type: "success"
            });
            setTimeout(function() {
              that.getFujian();
              that.showChaKan = false;
              that.itemData = ""; //单个附件的数据
              that.yijianValue = ""; //意见值
              that.yijianContent = ""; //意见内容
            }, 1200);
          }
        })
        .catch(error => {
          this.fullscreenLoading = false;
        });
    },
    //获取意见类型
    getOpinionType() {
      getNormalOpinionType().then(res => {
        this.cuowuList = res.data;
        this.cuowuListData = res.data;
      });
      getQuestionsOpinionType().then(res => {
        this.qswuowuList = res.data;
      });
    },
    //查看附件
    chaKanItem(item) {
      this.itemData = item;
      console.log(item, "item");
      if(item.opinionStatus=='VIEW'){
        this.yijianValue=item.opinionType
        this.yijianContent=item.opinion
        if (this.yijianValue == "NO_PROBLEM") {
          this.isText = false;
        } else {
          this.isText = true;
        }
      }else if(item.opinionStatus=='AUDIT'){
        this.isText = true;
        this.yijianValue=''
        this.yijianContent=''
      }
      this.showChaKan = true;
      
    },
    //获取附件列表
    getFujian() {
      var data = {
        projectId: localStorage.getItem("projectId")
      };
      queryFilingDataFujian(data).then(res => {
        this.fujianList = res.data;
      });
    
    },
    
    //关闭审查弹框
    handleClose() {
      this.shenchaFlag = false;
      this.noWenti = true;
    },
    //打开审查意见弹框
    shenchaYj(row) {
      this.shenchaInfo.landId = row.landId;
      if(row.auditDto.landOpinionStatus=='AUDIT'){
        this.shenchaInfo.isExistQuestions=''
        this.shenchaInfo.questionsRecord=''
      }else{
        this.shenchaInfo.isExistQuestions=row.auditDto.landOpinionType
        this.shenchaInfo.questionsRecord=row.auditDto.landOpinion
      }
      this.shenchaFlag = true;
    },
    getData() {
      this.listLoading = true;
      var data = {};
      var objArr = this.listQuery;
      for (var index in objArr) {
        if (objArr[index] != "" && objArr[index] != null) {
          data[index] = objArr[index];
        }
      }
      data["projectId"] = localStorage.getItem("projectId");
      queryFilingAuditInfo(data).then(res => {
        this.listLoading = false;
        this.list = res.data.rows;
        this.total = res.data.total;
      });
    },
    //改变每页显示条数
    handleSizeChange(val) {
      console.log(val, "12");
      this.listQuery.size = val;
      this.getData();
    },
    //改变页码
    handleCurrentChange(val) {
      console.log(val, "val");
      this.listQuery.page = val;
      this.getData();
    },
    handleClick(tab, event) {
      this.showChaKan = false;
      this.textarea = "";
      this.value = "";
    },

    changeLnglat(scope) {
      this.$refs.tdMap.changePkPosition(scope.$index);
    }
  }
};
</script>
<style >
#qianqichjgcs .el-tabs__nav-wrap::after {
  height: 1px;
}

#qianqichjgcs .mapBox {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 30px;
}
#qianqichjgcs .mapBox_right {
  width: 85%;
  height: 600px;
}
#qianqichjgcs .ditudanghang {
  background: #f2f2f2;
  height: 40px;
  border-bottom: 1px solid #e9e9e9;
  overflow: hidden;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: #4d4d4d;
  line-height: 40px;
}
.fujianShenCha {
  overflow: auto;
}
#qianqichjgcs .fujianList {
  margin-top: 30px;
  float: left;
  width: 30%;
  box-sizing: border-box;
}
.chaKanBox {
  float: left;
  width: 68%;
  box-sizing: border-box;
}
#qianqichjgcs .fujianList_item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  margin-left: 30px;
}
#qianqichjgcs .fujianList_item p {
  width: 300px;
  font-size: 14px;
  font-weight: bold;
  text-align: left;
  color: #444;
}

#qianqichjgcs .dachuShenCha {
  position: absolute;
  right: 0;
  top: 14px;
  display: flex;
}
#qianqichjgcs .dachuShenCha .dachuShenCha_item {
  font-size: 14px;
  color: #4d4d4d;
  cursor: pointer;
}
#qianqichjgcs .dachuShenCha .dachuShenCha_item:first-child {
  margin-right: 35px;
}

.showDetail {
  display: flex;
}
.chaKanBox_right_select {
  display: flex;
  align-items: center;
}
.chaKanBox_right_select p {
  font-size: 14px;
  color: #444;
  margin-right: 15px;
}
.chaKanBox_right {
  margin-left: 40px;
  width: calc(100% - 540px);
}
.chaKanBox_right_item {
  margin-bottom: 20px;
}
.chaKanBox_right_item_textarea {
  width: 100%;
}
.shenchaItem {
  display: flex;
  align-items: center;
}
.shenchaItem p {
  width: 230px;
  font-size: 14px;
  color: #444;
  font-weight: bold;
  text-align: left;
  white-space: nowrap;
}
.shenChaTanKuang .el-dialog {
  width: 500px;
}
.shenchaItem_item_textarea {
  width: 100%;
}
.shenchaItem_item_noFlex p {
  font-size: 14px;
  color: #444;
  font-weight: bold;
  text-align: left;
  white-space: nowrap;
}
.shenchaItem_small {
  margin-top: 20px;
}
.shenchaItem_small p {
  width: 100px;
}
.shenchaItem_item_input {
  width: 260px;
}

.el-tree-node__label {
  margin-left: 10px;
}

.seeImg {
  text-align: center;
  overflow: hidden;
}
.seeImg ul,
.seeImg li {
  list-style: none;
}
.seeImg li {
  float: left;
}
.seeImg li img {
  width: 400px;
  height: 400px;
  margin-right: 20px;
  margin-bottom: 20px;
}
.iframeLoad {
  display: flex;
  font-size: 35px;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
#qianqichjgcs .CAD .el-button--medium {
  border-radius: 4px 0 0 4px;
}
.tableBasicInfo{
  margin: 20px auto;
  font-size: 14px;
  text-align: center;
  width: 90%;
  border: 1px solid #EBEEF5;
  box-sizing: border-box;
  border-bottom:0px; 
}

.tableBasicInfo tr th,.tableBasicInfo tr td{
  border-bottom: 1px solid #EBEEF5;
  padding: 5px 10px;
}
.tableBasicInfo tr th{
  border-right: 1px solid #EBEEF5;
  color: #b3b3b3;
}
.tableBasicInfo tr td{
  color: #666;
}
</style>
